package study.chapter02.innerclass;
//匿名内部类
public class Outer5 {
    public static void main(String[] args) {
        MyInterface myInterface = new MyInterface() {
            @Override
            public void say() {
                System.out.println("hello world");
            }
        };
        myInterface.say();
    }
}

interface MyInterface{
    void say();
}
